import * as articles_type from './action-type';

let articles_data = {
    "thingDetails": {
        "thingTitle": "",
        "thingBanner": [],
        "thingNum": "",
        "thingDisc":"",
        "thingPrice":"",
        "thingTag":[],
        "thingContent1":[],
        "thingContent2":[],
        "thingContent3":[],
        "thingContent4":[]
    }
}

const proMainDetails = (state = articles_data, action = {}) => {

    switch (action.type) {
        case articles_type.MAINDETAILS_TYPE:
            return { ...state, ...action.data };
        default:
            return state;
    }
}

export default proMainDetails;